< previous page page_396 next page >

Page 396
TABLE 14.6. VISUAL BASIC FEATURES NOT SUPPORTED IN VBSCRIPT 2.0.
CategoryFeature or Keyword
Array handlingOption Base, declaring arrays with lower-bound <>0
CollectionAdd, Count, Item, Remove, access to collections by using ! character
Conditional compilation#Const, #IfThen#Else
Control flowDoEvents, GoSubReturn, GoTo,  On Error GoTo,  OnGoSub, OnGoTo, line numbers, line labels, WithEnd With
ConversionCVar, CVDate, Str, Val
Data typesAll intrinsic data types except Variant, TypeEnd Type
Date/timeDate statement, Time statement, Timer
DDELinkExecute, LinkPoke, LinkRequest,  LinkSend
DebuggingDebug.Print, End, Stop
DeclarationDeclare (for declaring DLLs), Property Get, Property Let,  Property Set,  Public, Private,  Static, ParamArray, Optional, New
Error handlingErl, Error, On ErrorResume,  Resume,  Resume Next
File input/outputAll
FinancialAll financial functions
Object manipulationTypeOf
ObjectsClipboard, Collection
OperatorsLike
OptionsDeftype, Option Base, Option  Compare,  Option Private Module
StringsFixed-length strings, LSet, Rset, Mid statement, StrConv
Using objectsCollection access by using !

Don't worry if the list seems long. The most important features of Visual Basic are included in VBScript, so you still can write powerful scripts. The only difference is that now you have to be more inventive when designing the code. You may find that some tricks you invent to overcome these limitations are so good that you want to use them in your normal Visual Basic applications.
Adding VBScript to an HTML Page
To see how VBScript works, look at what you have to add to a Web page to make it perform some processing. To use VBScript in your Web page, you must add some HTML code that tells the browser that your Web page contains script code. VBScript also doesn't support the forms you're accustomed to using in Visual Basic, meaning that your

 
< previous page page_396 next page >

If you like this book, buy it!